﻿using Newtonsoft.Json;
using SqlSugar;
using System;
using wnet.admin.wentcommon;

namespace Models
{
    /// <summary>
    /// 任务管理
    ///</summary>
    [SugarTable("yw_taskmanage")]
    public class yw_taskmanage
    {
        /// <summary>
        /// ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }

        /// <summary>
        /// 标题
        /// </summary> 
        public string name { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        [SugarColumn(ColumnName = "createtime")]
        public DateTime createtime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        [SugarColumn(ColumnName = "updatetime")]
        public DateTime updatetime { get; set; }

        /// <summary>
        /// 检测时间
        /// </summary>
        [JsonConverter(typeof(LongDateTimeConvert))]
        [SugarColumn(ColumnName = "checktime")]
        public DateTime? checktime { get; set; }

        /// <summary>
        /// 检测人员ID
        /// </summary>
        public int? checkuserid { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string checkusername { get;set; }

        /// <summary>
        /// 检测内容
        /// </summary>
        public string checkprojectname { get; set; }

        /// <summary>
        /// 检测项目描述
        /// </summary>
        public string checkdes { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remarks { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public string orderno { get; set; }

        /// <summary>
        /// 确认状态
        /// </summary>
        public int? confirmstatus { get; set; }

        /// <summary>
        /// 确认时间
        /// </summary>
        public DateTime? confirmtime { get; set; }

        /// <summary>
        /// 完成状态
        /// </summary>
        public int? status { get; set; }
    }
}